package com.ruoyi.used.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.used.mapper.UsedReplyMapper;
import com.ruoyi.used.domain.UsedReply;
import com.ruoyi.used.service.IUsedReplyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 回复评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-13
 */
@Service
public class UsedReplyServiceImpl implements IUsedReplyService 
{
    @Autowired
    private UsedReplyMapper usedReplyMapper;

    /**
     * 查询回复评价
     * 
     * @param reId 回复评价ID
     * @return 回复评价
     */
    @Override
    public UsedReply selectUsedReplyById(Long reId)
    {
        return usedReplyMapper.selectUsedReplyById(reId);
    }

    /**
     * 查询回复评价列表
     * 
     * @param usedReply 回复评价
     * @return 回复评价
     */
    @Override
    public List<UsedReply> selectUsedReplyList(UsedReply usedReply)
    {
        return usedReplyMapper.selectUsedReplyList(usedReply);
    }

    /**
     * 新增回复评价
     * 
     * @param usedReply 回复评价
     * @return 结果
     */
    @Override
    public int insertUsedReply(UsedReply usedReply)
    {
        return usedReplyMapper.insertUsedReply(usedReply);
    }

    /**
     * 修改回复评价
     * 
     * @param usedReply 回复评价
     * @return 结果
     */
    @Override
    public int updateUsedReply(UsedReply usedReply)
    {
        return usedReplyMapper.updateUsedReply(usedReply);
    }

    /**
     * 删除回复评价对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteUsedReplyByIds(String ids)
    {
        return usedReplyMapper.deleteUsedReplyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除回复评价信息
     * 
     * @param reId 回复评价ID
     * @return 结果
     */
    @Override
    public int deleteUsedReplyById(Long reId)
    {
        return usedReplyMapper.deleteUsedReplyById(reId);
    }
}
